/*
package com.adingxiong.pm.product;


import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

*/
/**
 * 生产者
 *//*


@Component

public class TestProduct {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void send(int i) {
        String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
        String content = "hello" + i + date;
        System.out.println("product" + content);
        //简单的队列
        this.rabbitTemplate.convertAndSend("q_hello", content);

    }
}
*/
